import VisualComponent.*;
public class Main {

    public static void main(String[] args) {
        // 创建一个带滚动条的窗体
        IComponent scrollWindow = new ScrollBarDecorator(new Window());
        scrollWindow.display();

        // 创建一个带黑色边框的文本框
        IComponent borderTextBox = new BlackBorderDecorator(new TextBox());
        borderTextBox.display();

        // 创建一个既带滚动条又带黑色边框的列表框
        IComponent scrollBorderListBox = new BlackBorderDecorator(new ScrollBarDecorator(new ListBox()));
        scrollBorderListBox.display();
    }
}